import App from './App'
import Vue from 'vue'
import uView from 'uni_modules/uview-ui'
import './static/iconfont.css'
import './static/style.scss'
Vue.prototype.$tipInfo = (title,callback = null) => {
  uni.showToast({
    title:title,
    duration:2000,
    icon:'none',
    success:()=>{
      setTimeout(()=>{
        callback && callback()
      },2000)
    }
  })
}
Vue.use(uView)

Vue.config.productionTip = false

App.mpType = 'app'

import store from '@/store';

const app = new Vue({
  store,
  ...App
})
// 引入请求封装，将app参数传递到配置中
require('@/config/http.interceptor.js')(app)

app.$mount()
